﻿@model GSLMS.Entity.TB_SYS_ORG
@{
    ViewBag.Title = "新增组织机构";
    var upOrgList=ViewData["orgList"] as SelectList;
    var empList = ViewData["empList"] as SelectList;
}
<div class="pageContent">
    <form method="post" action="System/Organize/Create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
    onsubmit="return validateCallback(this, dialogAjaxDone);">
    @Html.ValidationSummary(true)
    <div class="pageFormContent" layouth="56">
        @Html.HiddenFor(model => model.ID)
        @Html.Hidden("HID_ISSITE",Model.ISSITE)
        <p>
            <label>
                编号：</label>
            @Html.TextBoxFor(model => model.ORGNO, new { @class = "required" })
        </p>
        <p>
          <label>
                名称：</label>
            @Html.TextBoxFor(model => model.ORGNAME, new { @class = "required" })
             @Html.ValidationMessageFor(model => model.ORGNAME)
        </p>
        <p>
          <label>
                办公电话：</label>
            @Html.TextBoxFor(model => model.TELCODE, new { @style = "float:none;width:40px" })-
            @Html.TextBoxFor(model => model.TEL, new { @style = "float:none;width:70px" })-
            @Html.TextBoxFor(model => model.TELSUB, new { @style = "float:none;width:40px" })
        </p>
        <p>
          <label>
                传真：</label>
           @Html.TextBoxFor(model => model.FAXCODE, new { @style = "float:none;width:40px" })-
           @Html.TextBoxFor(model => model.FAX, new { @style = "float:none;width:70px" })
           
        </p>
        <p>
          <label>
                办公地址：</label>
           @Html.TextBoxFor(model => model.ADDR)
        </p>
        <p>
          <label>
                邮编：</label>
           @Html.TextBoxFor(model => model.POSTNO)
        </p>
        <p>
          <label>
                组织机构负责人：</label>
           @Html.DropDownListFor(model => model.PRINCIPALID, empList,GSLMS.WebAPP.HelperCommon.SelectDefaultValue, new { @class = "combox", @selectedvalue = Model.PRINCIPALID })
          @* &nbsp;&nbsp;<input type="button" value="选择" />*@
           @Html.HiddenFor(model => model.PRINCIPALID)
        </p>
        <p>
          <label>
                上级组织机构：</label>
          @Html.DropDownListFor(model => model.PID, upOrgList, GSLMS.WebAPP.HelperCommon.SelectDefaultValue, new { @class = "combox", @selectedvalue = Model.PID })
         </p>
         <p>
          <label>
                是否网点：</label>
            @Html.RadioButtonFor(model => model.ISSITE, 1)
            <span>是&nbsp;</span>
             @Html.RadioButtonFor(model => model.ISSITE, 0)
            <span>否&nbsp;</span>
              @Html.ValidationMessageFor(model => model.ISSITE)
         </p>
         <p style=" width:760px;">
          <label>
                备注：</label>
            @Html.TextBoxFor(model => model.REMARK, new { @style = "width:506px;",})
         </p>
         <p>
          <label>
                创建人：</label>
            @Html.TextBoxFor(model => model.CREATEBY, new { @readonly = "true" })
         </p>
         <p>
          <label>
                创建时间：</label>
            @Html.TextBoxFor(model => model.CREATEDATE, new { @readonly = "true", @dateFmt = "yyyy-MM-dd HH:mm:ss" })
         </p>
         <p>
          <label>
                修改人：</label>
            @Html.TextBoxFor(model => model.MODIFYBY, new { @readonly = "true" })
         </p>
         <p>
          <label>
                修改时间：</label>
            @Html.TextBoxFor(model => model.MODIFYDATE, new { @readonly = "true", @dateFmt = "yyyy-MM-dd HH:mm:ss" })
         </p>
     </div>
    @Html.Partial("FormButtonBar")
    </form>
    
  </div>

